package com.mfcxy.tools;

import java.util.Arrays;

import org.apache.http.Header;

/**
 * http 请求返回的类
 * @author mfcxy
 *
 */
public class HttpResponse {

	private String body;
	private Header[] headers;
	private String reasonPhrase;
	private int statusCode;

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Header[] getHeaders() {
		return headers;
	}

	public void setHeaders(Header[] headers) {
		this.headers = headers;
	}

	public String getReasonPhrase() {
		return reasonPhrase;
	}

	public void setReasonPhrase(String reasonPhrase) {
		this.reasonPhrase = reasonPhrase;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	@Override
	public String toString() {
		return "HttpResponse [body=" + body + ", headers=" + Arrays.toString(headers) + ", reasonPhrase=" + reasonPhrase
				+ ", statusCode=" + statusCode + "]";
	}

}
